#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ARLTimeUtils : NSObject

//将NSDate类型的时间转换为时间戳,从1970/1/1开始
+(long long)getDateTimeTOMilliSeconds:(NSDate *)datetime;
+ (NSString *)getCurrentTimeStampInMillionSeconds;
+ (NSString *)getCurrentTimeStampInSeconds;
+ (NSNumber *)getTimeZoneOffset;

/**
 anyDate 转成 本地时区的 NSDate
 */
+(NSDate *)getLocalDateFormatAnyDate:(NSDate *)anyDate;
/**
 将本地日期字符串转为UTC日期字符串
 eg: 2017-10-25 02:07:39 -> 2017-10-24 18:07:39
 */
+(NSString *)getUTCStrFormateLocalStr:(NSString *)localStr;
/**
 将UTC日期字符串转为本地时间字符串
 eg: 2017-10-25 02:07:39  -> 2017-10-25 10:07:39
 */
+(NSString *)getLocalDateFormateUTCDate:(NSString *)utcStr;

+ (NSString*)currUTCDate;

+ (NSString*)currUTCDateCN;

+ (long long)currTOMilliSeconds;

@end
NS_ASSUME_NONNULL_END

